<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Caffe: caffe::Solver&lt; Dtype &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Caffe
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecaffe.html">caffe</a></li><li class="navelem"><a class="el" href="classcaffe_1_1Solver.html">Solver</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classcaffe_1_1Solver-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">caffe::Solver&lt; Dtype &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>An interface for classes that perform optimization on <a class="el" href="classcaffe_1_1Net.html" title="Connects Layers together into a directed acyclic graph (DAG) specified by a NetParameter. ">Net</a>s.  
 <a href="classcaffe_1_1Solver.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="solver_8hpp_source.html">solver.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for caffe::Solver&lt; Dtype &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcaffe_1_1Solver.png" usemap="#caffe::Solver_3C_20Dtype_20_3E_map" alt=""/>
  <map id="caffe::Solver_3C_20Dtype_20_3E_map" name="caffe::Solver_3C_20Dtype_20_3E_map">
<area href="classcaffe_1_1SGDSolver.html" title="Optimizes the parameters of a Net using stochastic gradient descent (SGD) with momentum. " alt="caffe::SGDSolver&lt; Dtype &gt;" shape="rect" coords="410,56,605,80"/>
<area href="classcaffe_1_1AdaDeltaSolver.html" alt="caffe::AdaDeltaSolver&lt; Dtype &gt;" shape="rect" coords="0,112,195,136"/>
<area href="classcaffe_1_1AdaGradSolver.html" alt="caffe::AdaGradSolver&lt; Dtype &gt;" shape="rect" coords="205,112,400,136"/>
<area href="classcaffe_1_1AdamSolver.html" title="AdamSolver, an algorithm for first-order gradient-based optimization of stochastic objective function..." alt="caffe::AdamSolver&lt; Dtype &gt;" shape="rect" coords="410,112,605,136"/>
<area href="classcaffe_1_1NesterovSolver.html" alt="caffe::NesterovSolver&lt; Dtype &gt;" shape="rect" coords="615,112,810,136"/>
<area href="classcaffe_1_1RMSPropSolver.html" alt="caffe::RMSPropSolver&lt; Dtype &gt;" shape="rect" coords="820,112,1015,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcaffe_1_1Solver_1_1Callback.html">Callback</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a153266a021a077d1e4b53819cf558780"><td class="memItemLeft" align="right" valign="top"><a id="a153266a021a077d1e4b53819cf558780"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Solver</b> (const SolverParameter &amp;param)</td></tr>
<tr class="separator:a153266a021a077d1e4b53819cf558780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dea449cb5198e44b1ad975943ec0d64"><td class="memItemLeft" align="right" valign="top"><a id="a8dea449cb5198e44b1ad975943ec0d64"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Solver</b> (const string &amp;param_file)</td></tr>
<tr class="separator:a8dea449cb5198e44b1ad975943ec0d64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf3071597032efde211e5b48cdcb99c5"><td class="memItemLeft" align="right" valign="top"><a id="abf3071597032efde211e5b48cdcb99c5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Init</b> (const SolverParameter &amp;param)</td></tr>
<tr class="separator:abf3071597032efde211e5b48cdcb99c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12e2bc3f5747c5e983f11d6c1dbe1256"><td class="memItemLeft" align="right" valign="top"><a id="a12e2bc3f5747c5e983f11d6c1dbe1256"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>InitTrainNet</b> ()</td></tr>
<tr class="separator:a12e2bc3f5747c5e983f11d6c1dbe1256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41e4eff217da272aa8dbc6f0d3bdd289"><td class="memItemLeft" align="right" valign="top"><a id="a41e4eff217da272aa8dbc6f0d3bdd289"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>InitTestNets</b> ()</td></tr>
<tr class="separator:a41e4eff217da272aa8dbc6f0d3bdd289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a90f66f516b986e873211fcbe340348"><td class="memItemLeft" align="right" valign="top"><a id="a4a90f66f516b986e873211fcbe340348"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetActionFunction</b> (<a class="el" href="namespacecaffe.html#a79ce9ffbdd44b367252e0b8cf99bf430">ActionCallback</a> func)</td></tr>
<tr class="separator:a4a90f66f516b986e873211fcbe340348"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af31b33df3dd3ea3b689839c8cb2ed29e"><td class="memItemLeft" align="right" valign="top"><a id="af31b33df3dd3ea3b689839c8cb2ed29e"></a>
SolverAction::Enum&#160;</td><td class="memItemRight" valign="bottom"><b>GetRequestedAction</b> ()</td></tr>
<tr class="separator:af31b33df3dd3ea3b689839c8cb2ed29e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20db89c708755c9a1e150df9d0a4b79c"><td class="memItemLeft" align="right" valign="top"><a id="a20db89c708755c9a1e150df9d0a4b79c"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>Solve</b> (const char *resume_file=NULL)</td></tr>
<tr class="separator:a20db89c708755c9a1e150df9d0a4b79c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0be56a22aebd71d012e751c9e97c7e6"><td class="memItemLeft" align="right" valign="top"><a id="ac0be56a22aebd71d012e751c9e97c7e6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Solve</b> (const string resume_file)</td></tr>
<tr class="separator:ac0be56a22aebd71d012e751c9e97c7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a326b27a6807f57edda47d6d4525a823b"><td class="memItemLeft" align="right" valign="top"><a id="a326b27a6807f57edda47d6d4525a823b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Step</b> (int iters)</td></tr>
<tr class="separator:a326b27a6807f57edda47d6d4525a823b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac133985ef686e874f5bd326350d266d8"><td class="memItemLeft" align="right" valign="top"><a id="ac133985ef686e874f5bd326350d266d8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Restore</b> (const char *resume_file)</td></tr>
<tr class="separator:ac133985ef686e874f5bd326350d266d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54325448a46b2e5d05b8d3c03522c8f7"><td class="memItemLeft" align="right" valign="top"><a id="a54325448a46b2e5d05b8d3c03522c8f7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Snapshot</b> ()</td></tr>
<tr class="separator:a54325448a46b2e5d05b8d3c03522c8f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4c3a8528c6f35c0e82316f35799afa0"><td class="memItemLeft" align="right" valign="top"><a id="ae4c3a8528c6f35c0e82316f35799afa0"></a>
const SolverParameter &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>param</b> () const</td></tr>
<tr class="separator:ae4c3a8528c6f35c0e82316f35799afa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed1d6d3b5d8c3bf43dd33464af0c9de1"><td class="memItemLeft" align="right" valign="top"><a id="aed1d6d3b5d8c3bf43dd33464af0c9de1"></a>
shared_ptr&lt; <a class="el" href="classcaffe_1_1Net.html">Net</a>&lt; Dtype &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>net</b> ()</td></tr>
<tr class="separator:aed1d6d3b5d8c3bf43dd33464af0c9de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81216da761d9c24b0b25224d1b77e905"><td class="memItemLeft" align="right" valign="top"><a id="a81216da761d9c24b0b25224d1b77e905"></a>
const vector&lt; shared_ptr&lt; <a class="el" href="classcaffe_1_1Net.html">Net</a>&lt; Dtype &gt; &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>test_nets</b> ()</td></tr>
<tr class="separator:a81216da761d9c24b0b25224d1b77e905"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ef547e6e2d8afd3910e75ac0283026"><td class="memItemLeft" align="right" valign="top"><a id="ae8ef547e6e2d8afd3910e75ac0283026"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>iter</b> () const</td></tr>
<tr class="separator:ae8ef547e6e2d8afd3910e75ac0283026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97be40eb471f0cf94b7d21c6942de4dc"><td class="memItemLeft" align="right" valign="top"><a id="a97be40eb471f0cf94b7d21c6942de4dc"></a>
const vector&lt; <a class="el" href="classcaffe_1_1Solver_1_1Callback.html">Callback</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>callbacks</b> () const</td></tr>
<tr class="separator:a97be40eb471f0cf94b7d21c6942de4dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c712433c94e24bc0aa26179da5fc3d4"><td class="memItemLeft" align="right" valign="top"><a id="a5c712433c94e24bc0aa26179da5fc3d4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>add_callback</b> (<a class="el" href="classcaffe_1_1Solver_1_1Callback.html">Callback</a> *value)</td></tr>
<tr class="separator:a5c712433c94e24bc0aa26179da5fc3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a657d215c62782e1a0767847e51eaedd5"><td class="memItemLeft" align="right" valign="top"><a id="a657d215c62782e1a0767847e51eaedd5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>CheckSnapshotWritePermissions</b> ()</td></tr>
<tr class="separator:a657d215c62782e1a0767847e51eaedd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a733bef9a2e7dea29f52ed46a922d96f7"><td class="memItemLeft" align="right" valign="top"><a id="a733bef9a2e7dea29f52ed46a922d96f7"></a>
virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcaffe_1_1Solver.html#a733bef9a2e7dea29f52ed46a922d96f7">type</a> () const</td></tr>
<tr class="memdesc:a733bef9a2e7dea29f52ed46a922d96f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the solver type. <br /></td></tr>
<tr class="separator:a733bef9a2e7dea29f52ed46a922d96f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a798f08452f76d3c328e95fa0acdb2b4d"><td class="memItemLeft" align="right" valign="top"><a id="a798f08452f76d3c328e95fa0acdb2b4d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>ApplyUpdate</b> ()=0</td></tr>
<tr class="separator:a798f08452f76d3c328e95fa0acdb2b4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa05c6b201186bf8425c7b3cdd173daa8"><td class="memItemLeft" align="right" valign="top"><a id="aa05c6b201186bf8425c7b3cdd173daa8"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>SnapshotFilename</b> (const string extension)</td></tr>
<tr class="separator:aa05c6b201186bf8425c7b3cdd173daa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad80ddf6a4dee3706ea91be22bcb1273a"><td class="memItemLeft" align="right" valign="top"><a id="ad80ddf6a4dee3706ea91be22bcb1273a"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>SnapshotToBinaryProto</b> ()</td></tr>
<tr class="separator:ad80ddf6a4dee3706ea91be22bcb1273a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6640d8667ba3cb6e492c83c8f8943fc"><td class="memItemLeft" align="right" valign="top"><a id="ab6640d8667ba3cb6e492c83c8f8943fc"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>SnapshotToHDF5</b> ()</td></tr>
<tr class="separator:ab6640d8667ba3cb6e492c83c8f8943fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac952acb7d33593bac88173ec31481647"><td class="memItemLeft" align="right" valign="top"><a id="ac952acb7d33593bac88173ec31481647"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>TestAll</b> ()</td></tr>
<tr class="separator:ac952acb7d33593bac88173ec31481647"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9364674374a00fa60cfa7627cce99894"><td class="memItemLeft" align="right" valign="top"><a id="a9364674374a00fa60cfa7627cce99894"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Test</b> (const int test_net_id=0)</td></tr>
<tr class="separator:a9364674374a00fa60cfa7627cce99894"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a521bf1546c71c27bec8e33c91eebdfe9"><td class="memItemLeft" align="right" valign="top"><a id="a521bf1546c71c27bec8e33c91eebdfe9"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>SnapshotSolverState</b> (const string &amp;model_filename)=0</td></tr>
<tr class="separator:a521bf1546c71c27bec8e33c91eebdfe9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9d89820d020a5f26460183d7f67009e"><td class="memItemLeft" align="right" valign="top"><a id="ae9d89820d020a5f26460183d7f67009e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>RestoreSolverStateFromHDF5</b> (const string &amp;state_file)=0</td></tr>
<tr class="separator:ae9d89820d020a5f26460183d7f67009e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab532eca6ca2b9c8e9374ed8c582f7957"><td class="memItemLeft" align="right" valign="top"><a id="ab532eca6ca2b9c8e9374ed8c582f7957"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>RestoreSolverStateFromBinaryProto</b> (const string &amp;state_file)=0</td></tr>
<tr class="separator:ab532eca6ca2b9c8e9374ed8c582f7957"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a321a24e0422c6f95895f57ed9732192a"><td class="memItemLeft" align="right" valign="top"><a id="a321a24e0422c6f95895f57ed9732192a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>DisplayOutputBlobs</b> (const int net_id)</td></tr>
<tr class="separator:a321a24e0422c6f95895f57ed9732192a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af38477c3d0e124de6eb989629cc4f62f"><td class="memItemLeft" align="right" valign="top"><a id="af38477c3d0e124de6eb989629cc4f62f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>UpdateSmoothedLoss</b> (Dtype loss, int start_iter, int average_loss)</td></tr>
<tr class="separator:af38477c3d0e124de6eb989629cc4f62f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7a623b6aa51f7971942d376652924f"><td class="memItemLeft" align="right" valign="top"><a id="a3d7a623b6aa51f7971942d376652924f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DISABLE_COPY_AND_ASSIGN</b> (<a class="el" href="classcaffe_1_1Solver.html">Solver</a>)</td></tr>
<tr class="separator:a3d7a623b6aa51f7971942d376652924f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a718d67175eba4eb6195b19ef38c3f17a"><td class="memItemLeft" align="right" valign="top"><a id="a718d67175eba4eb6195b19ef38c3f17a"></a>
SolverParameter&#160;</td><td class="memItemRight" valign="bottom"><b>param_</b></td></tr>
<tr class="separator:a718d67175eba4eb6195b19ef38c3f17a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade2a806f82be02b91f3c7c08d234dbbb"><td class="memItemLeft" align="right" valign="top"><a id="ade2a806f82be02b91f3c7c08d234dbbb"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>iter_</b></td></tr>
<tr class="separator:ade2a806f82be02b91f3c7c08d234dbbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6531b137643b2acfd45ee57906a54f65"><td class="memItemLeft" align="right" valign="top"><a id="a6531b137643b2acfd45ee57906a54f65"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>current_step_</b></td></tr>
<tr class="separator:a6531b137643b2acfd45ee57906a54f65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c9e9a8c4d0fd56432b12daf75dea04"><td class="memItemLeft" align="right" valign="top"><a id="a93c9e9a8c4d0fd56432b12daf75dea04"></a>
shared_ptr&lt; <a class="el" href="classcaffe_1_1Net.html">Net</a>&lt; Dtype &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>net_</b></td></tr>
<tr class="separator:a93c9e9a8c4d0fd56432b12daf75dea04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8d1b92851465b530a82a695782c4eda"><td class="memItemLeft" align="right" valign="top"><a id="ac8d1b92851465b530a82a695782c4eda"></a>
vector&lt; shared_ptr&lt; <a class="el" href="classcaffe_1_1Net.html">Net</a>&lt; Dtype &gt; &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>test_nets_</b></td></tr>
<tr class="separator:ac8d1b92851465b530a82a695782c4eda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae768f16b8ef9e69741d383aae032cd95"><td class="memItemLeft" align="right" valign="top"><a id="ae768f16b8ef9e69741d383aae032cd95"></a>
vector&lt; <a class="el" href="classcaffe_1_1Solver_1_1Callback.html">Callback</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>callbacks_</b></td></tr>
<tr class="separator:ae768f16b8ef9e69741d383aae032cd95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3184c6647e3a842717638c7a31506f45"><td class="memItemLeft" align="right" valign="top"><a id="a3184c6647e3a842717638c7a31506f45"></a>
vector&lt; Dtype &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>losses_</b></td></tr>
<tr class="separator:a3184c6647e3a842717638c7a31506f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf306d832ed4706ea3168ac759dccc2b"><td class="memItemLeft" align="right" valign="top"><a id="aaf306d832ed4706ea3168ac759dccc2b"></a>
Dtype&#160;</td><td class="memItemRight" valign="bottom"><b>smoothed_loss_</b></td></tr>
<tr class="separator:aaf306d832ed4706ea3168ac759dccc2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a6f4f96ff0edf14d0fd4686b00fe33"><td class="memItemLeft" align="right" valign="top"><a id="a12a6f4f96ff0edf14d0fd4686b00fe33"></a>
<a class="el" href="namespacecaffe.html#a79ce9ffbdd44b367252e0b8cf99bf430">ActionCallback</a>&#160;</td><td class="memItemRight" valign="bottom"><b>action_request_function_</b></td></tr>
<tr class="separator:a12a6f4f96ff0edf14d0fd4686b00fe33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d9ea1f82685a4091290f45984cf9167"><td class="memItemLeft" align="right" valign="top"><a id="a5d9ea1f82685a4091290f45984cf9167"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>requested_early_exit_</b></td></tr>
<tr class="separator:a5d9ea1f82685a4091290f45984cf9167"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed311f5862c2c36472e599bfbf8cb4dd"><td class="memItemLeft" align="right" valign="top"><a id="aed311f5862c2c36472e599bfbf8cb4dd"></a>
<a class="el" href="classcaffe_1_1Timer.html">Timer</a>&#160;</td><td class="memItemRight" valign="bottom"><b>iteration_timer_</b></td></tr>
<tr class="separator:aed311f5862c2c36472e599bfbf8cb4dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d8886230702c45e94d2d427d0bb17fe"><td class="memItemLeft" align="right" valign="top"><a id="a5d8886230702c45e94d2d427d0bb17fe"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>iterations_last_</b></td></tr>
<tr class="separator:a5d8886230702c45e94d2d427d0bb17fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Dtype&gt;<br />
class caffe::Solver&lt; Dtype &gt;</h3>

<p>An interface for classes that perform optimization on <a class="el" href="classcaffe_1_1Net.html" title="Connects Layers together into a directed acyclic graph (DAG) specified by a NetParameter. ">Net</a>s. </p>
<p>Requires implementation of ApplyUpdate to compute a parameter update given the current state of the <a class="el" href="classcaffe_1_1Net.html" title="Connects Layers together into a directed acyclic graph (DAG) specified by a NetParameter. ">Net</a> parameters. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>include/caffe/<a class="el" href="solver_8hpp_source.html">solver.hpp</a></li>
<li>src/caffe/solver.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 3 2017 23:11:30 for Caffe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
